Routine

data class Routine(val id: String, var name: String, var type: String = "", var active: Boolean = false)

Constructors

Link copied to clipboard
constructor(id: String, name: String, type: String = "", active: Boolean = false)

Properties

Link copied to clipboard
var active: Boolean

Define is the routine is the one currently selected and active.

Link copied to clipboard
var busyCallForward: ForwardStatus

ForwardStatus Define the forward details on busy

Link copied to clipboard

Define the number that will appear on the distant during an outgoing PBX call.

Link copied to clipboard

Define if the office phone should ring too when called.

Link copied to clipboard

Define if the routine should withdraw the user from all call groups.

Link copied to clipboard
val id: String

Identifier of the routine.

Link copied to clipboard
var immediateCallForward: ForwardStatus

ForwardStatus Define the immediate forward details

Link copied to clipboard
var isFullyLoaded: Boolean

Define if the routine has been fully loaded of if we need to get it by Id to get it in full.

Link copied to clipboard
var name: String

Name of the routine.

Link copied to clipboard
var noreplyCallForward: ForwardStatus

ForwardStatus Define the forward details on no answer

Link copied to clipboard
Link copied to clipboard

Define the presence to set. Allowed values are manual presences: "dnd", "online", "invisible", "away"

Link copied to clipboard
var type: String

Default name of the routine. Only defined for default routines that are not created by the user.

Functions

Link copied to clipboard
fun isCustomRoutine(): Boolean

Return true if the routine is a custom one, false otherwise.

Link copied to clipboard
fun isDefaultRoutine(): Boolean

Return true if the routine is the default one, false otherwise.

Link copied to clipboard
fun update(routine: Routine)

Update the routine with the content of the one passed in parameter.